package com.example.demo.controller;

import org.springframework.web.bind.annotation.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2023-08-04
 * Time: 17:27
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/hi/hh")
    public String sayHi(){
        return "hi ,spring mvc";
    }
    @RequestMapping(value = "/hii",method = RequestMethod.POST)
    public String sayhi2(){
        return "zezeze";
    }
    @PostMapping("/h")
    public String sayhi(){
        return "wyb";
    }
    @RequestMapping(value = "/hiii",method = RequestMethod.GET)
    public String sayhi3(){
        return "zezeze";
    }
    @GetMapping("/hello")
    public String saihi4(){
        return "who";
    }

}
